package com.jt.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.web.bind.annotation.GetMapping;

@Data //默认生成get/set/toString/hashcode...
@Accessors(chain = true) //开启链式加载
@NoArgsConstructor //无参构造
@AllArgsConstructor //全参构造
public class Car {
    private Integer id;
    private String name;
    private String type;


    //pojo中必须有set/get
//    public Car setName(String name) {
//        this.name = name;
//        return this;
//    }
}

